<div style="padding: 4px 0;">
    Chuyển danh mục
</div>
<form name="frmMergeCategory" id="frmMergeCategory" method="post">
    <div id="item_from_1">
        <div class="workarea">
            <ul class="draglist" id="list_from_1" >
                <?php foreach ($aryCategory as $key => $value) { ?>
                    <li id="list_<?php echo $value['category_id']; ?>" class="list1" style="cursor: pointer;">
                        <label for="from_<?php echo $value['category_id']; ?>"><input type="radio" name="from_category[]" id="from_<?php echo $value['category_id']; ?>" value="<?php echo $value['category_id']; ?>"><a onclick="AdminController.getListCategoryFrom(<?php echo $value['category_id']; ?>, 1);"><?php echo $value['category_name']; ?><?php echo ($value['category_total_child'] > 0) ? '<img src="/public/images/form/arrow_next.png" width=12 height=12>' : ''; ?></a></label>
                    </li>
                <?php } ?>
            </ul>
        </div>
    </div>    

    <div id="item_from_2" class="hide">

    </div>
    <div id="item_from_3" class="hide">

    </div>
    <div id="item_from_4" class="hide">

    </div>
<div style="clear: both;"></div>
<div style="padding: 4px 0;">
    Sang danh mục
</div>
<div id="item_to_1">
    <div class="workarea">
        <ul class="draglist" id="list_to_1">
            <?php foreach ($aryCategory as $key => $value) { ?>
            <li id="item_list_to_<?php echo $value['category_id'];?>" class="list1" style="cursor: pointer;">
                    <label for="to_<?php echo $value['category_id']; ?>"><input type="radio" name="to_category[]" id="to_<?php echo $value['category_id']; ?>" value="<?php echo $value['category_id']; ?>"><a onclick="AdminController.getListCategoryTo(<?php echo $value['category_id']; ?>, 1);"><?php echo $value['category_name']; ?><?php echo ($value['category_total_child'] > 0) ? '<img src="/public/images/form/arrow_next.png" width=12 height=12>' : ''; ?></a></label>
                </li>
            <?php } ?>
        </ul>
    </div>
</div>

<div id="item_to_2" class="hide">

</div>
<div id="item_to_3" class="hide">

</div>
<div id="item_to_4" class="hide">

</div>
</form>
<div style="clear: both;"></div>
<div>
    <input type="button" value="Lưu" class="submit" onclick="AdminController.saveMergeCategory();">
</div>